<template>
  <div class="mes">
    <div class="mmm">
      <div class="mnm">标题</div>
      <div>内容</div>
      <div>
        <button @click="$emit('clc')">关闭</button>
      </div>
    </div>
  </div>
</template>
<script setup>
    const c = "red";
</script>
<style scoped>
.mes {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
}
.mmm {
  width: 300px;
  height: 100px;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mnm {
  text-align: center;
  color: v-bind(c);
}
</style>